package com.example.video

import com.alibaba.android.arouter.launcher.ARouter
import com.example.base.BaseApp
import com.example.base.BuildConfig
import com.example.lib_db.db.room.RoomDBUtils
import com.tencent.mmkv.MMKV

//视频App
class VideoApp :BaseApp(){
    override fun onCreate() {
        super.onCreate()

        //初始化SDK

        if (BuildConfig.DEBUG){
            ARouter.openLog()
            ARouter.openDebug()
        }
        ARouter.init(this)

        //MMKV初始化
        MMKV.initialize(this)

        //初始化数据库
        RoomDBUtils.initRoom(this)
    }
}